.class Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;
.super Ljava/lang/Object;
.source "AppInfoManager.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/AppInfoManager;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ChangedPackageTask"
.end annotation


# static fields
.field public static final OP_ADD:I = 0x1

.field public static final OP_AVAILABLE:I = 0x4

.field public static final OP_NONE:I = 0x0

.field public static final OP_REMOVE:I = 0x3

.field public static final OP_UNAVAILABLE:I = 0x5

.field public static final OP_UPDATE:I = 0x2


# instance fields
.field mOp:I

.field mPackages:[Ljava/lang/String;

.field final synthetic this$0:Lcom/nemustech/regina/AppInfoManager;


# direct methods
.method public constructor <init>(Lcom/nemustech/regina/AppInfoManager;I[Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter "op"
    .parameter "packages"

    .prologue
    .line 642
    iput-object p1, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 643
    iput p2, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->mOp:I

    .line 644
    iput-object p3, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->mPackages:[Ljava/lang/String;

    .line 645
    return-void
.end method

.method private addPackage(Ljava/lang/String;)V
    .locals 17
    .parameter "packageNameToAdd"

    .prologue
    .line 724
    if-eqz p1, :cond_7

    invoke-virtual/range {p1 .. p1}, Ljava/lang/String;->length()I

    move-result v14

    if-lez v14, :cond_7

    .line 725
    const-string v14, "AppInfoManager"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string v16, "addPackage called!! - "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    move-object v0, v15

    move-object/from16 v1, p1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-static/range {v14 .. v16}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 727
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$600(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v14

    move-object v0, v14

    move-object/from16 v1, p1

    invoke-static {v0, v1}, Lcom/nemustech/regina/AppInfoManager;->access$1600(Landroid/content/Context;Ljava/lang/String;)Ljava/util/List;

    move-result-object v13

    .line 730
    .local v13, toAdd:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    const-string v14, "AppInfoManager"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string v16, "mAppInfoData size : "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object/from16 v16, v0

    invoke-static/range {v16 .. v16}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v16

    invoke-interface/range {v16 .. v16}, Ljava/util/List;->size()I

    move-result v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-static/range {v14 .. v16}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 732
    invoke-interface {v13}, Ljava/util/List;->size()I

    move-result v14

    if-lez v14, :cond_7

    .line 733
    invoke-interface {v13}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v6

    .end local p1
    .local v6, i$:Ljava/util/Iterator;
    :cond_0
    :goto_0
    invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z

    move-result v14

    if-eqz v14, :cond_7

    invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Landroid/content/pm/ResolveInfo;

    .line 735
    .local v11, resolveInfo:Landroid/content/pm/ResolveInfo;
    new-instance v2, Lcom/nemustech/regina/AppInfo;

    invoke-direct {v2}, Lcom/nemustech/regina/AppInfo;-><init>()V

    .line 736
    .local v2, appInfo:Lcom/nemustech/regina/AppInfo;
    iget-object v14, v11, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v15, v0

    invoke-static {v15}, Lcom/nemustech/regina/AppInfoManager;->access$400(Lcom/nemustech/regina/AppInfoManager;)Landroid/content/pm/PackageManager;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/content/pm/ActivityInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;

    move-result-object v14

    iput-object v14, v2, Lcom/nemustech/regina/AppInfo;->title:Ljava/lang/CharSequence;

    .line 737
    new-instance v4, Landroid/content/ComponentName;

    iget-object v14, v11, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v14, v14, Landroid/content/pm/ActivityInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    iget-object v14, v14, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    iget-object v15, v11, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v15, v15, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    invoke-direct {v4, v14, v15}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 740
    .local v4, componentName:Landroid/content/ComponentName;
    const/high16 v14, 0x1020

    invoke-virtual {v2, v4, v14}, Lcom/nemustech/regina/AppInfo;->setActivity(Landroid/content/ComponentName;I)V

    .line 743
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v14

    invoke-interface {v14, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_1

    .line 744
    const-string v14, "AppInfoManager"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string v16, "this application has already added, no need to add : "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    move-object v0, v2

    iget-object v0, v0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-static/range {v14 .. v16}, Lcom/nemustech/regina/RLog;->w(Ljava/lang/String;Ljava/lang/String;Z)I

    goto :goto_0

    .line 748
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v14

    invoke-interface {v14, v2}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result v7

    .line 749
    .local v7, index:I
    const-string v14, "AppInfoManager"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string v16, "index = "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-static/range {v14 .. v16}, Lcom/nemustech/regina/RLog;->w(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 750
    const-string v14, "AppInfoManager"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string v16, "this application has not added : "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    move-object v0, v2

    iget-object v0, v0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-static/range {v14 .. v16}, Lcom/nemustech/regina/RLog;->w(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 753
    const/4 v8, 0x0

    .line 754
    .local v8, isAdded:Z
    const/4 v9, 0x0

    .line 755
    .local v9, nextAppInfo:Lcom/nemustech/regina/AppInfo;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v14

    invoke-interface {v14}, Ljava/util/List;->size()I

    move-result v12

    .line 758
    .local v12, size:I
    const/4 v5, 0x0

    .local v5, i:I
    :goto_1
    if-ge v5, v12, :cond_4

    .line 759
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v14

    invoke-interface {v14, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/nemustech/regina/AppInfo;

    move-object/from16 v0, p1

    iget-object v0, v0, Lcom/nemustech/regina/AppInfo;->title:Ljava/lang/CharSequence;

    move-object v14, v0

    invoke-virtual {v14}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v14

    iget-object v15, v2, Lcom/nemustech/regina/AppInfo;->title:Ljava/lang/CharSequence;

    invoke-virtual {v15}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_3

    .line 758
    :cond_2
    add-int/lit8 v5, v5, 0x1

    goto :goto_1

    .line 761
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v14

    invoke-interface {v14, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/nemustech/regina/AppInfo;

    move-object/from16 v0, p1

    iget-object v0, v0, Lcom/nemustech/regina/AppInfo;->title:Ljava/lang/CharSequence;

    move-object v14, v0

    invoke-virtual {v14}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v14

    iget-object v15, v2, Lcom/nemustech/regina/AppInfo;->title:Ljava/lang/CharSequence;

    invoke-virtual {v15}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/String;->compareToIgnoreCase(Ljava/lang/String;)I

    move-result v14

    if-lez v14, :cond_2

    .line 762
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v14

    invoke-interface {v14, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    .end local v9           #nextAppInfo:Lcom/nemustech/regina/AppInfo;
    check-cast v9, Lcom/nemustech/regina/AppInfo;

    .line 763
    .restart local v9       #nextAppInfo:Lcom/nemustech/regina/AppInfo;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v14

    invoke-interface {v14, v5, v2}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 764
    const/4 v8, 0x1

    .line 768
    :cond_4
    if-nez v8, :cond_5

    .line 769
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v14

    invoke-interface {v14, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 772
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14, v2}, Lcom/nemustech/regina/AppInfoManager;->access$1700(Lcom/nemustech/regina/AppInfoManager;Lcom/nemustech/regina/AppInfo;)V

    .line 774
    if-eqz v9, :cond_6

    .line 776
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$200(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/tiffany/util/TFCache;

    move-result-object v14

    iget-object v15, v9, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v15}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v15

    invoke-virtual {v15}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Lcom/nemustech/tiffany/util/TFCache;->indexOf(Ljava/lang/String;)I

    move-result v7

    .line 777
    const/4 v14, -0x1

    if-eq v7, v14, :cond_0

    const/16 v14, 0x13f

    if-gt v7, v14, :cond_0

    .line 778
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$200(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/tiffany/util/TFCache;

    move-result-object v14

    const/4 v15, 0x1

    invoke-virtual {v14, v15}, Lcom/nemustech/tiffany/util/TFCache;->setVictimStyle(I)V

    .line 779
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$600(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v14

    iget-object v15, v11, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object/from16 v16, v0

    invoke-static/range {v16 .. v16}, Lcom/nemustech/regina/AppInfoManager;->access$400(Lcom/nemustech/regina/AppInfoManager;)Landroid/content/pm/PackageManager;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Landroid/content/pm/ActivityInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object v15

    invoke-static {v14, v15}, Lcom/nemustech/regina/RUtils;->createIconThumbnail(Landroid/content/Context;Landroid/graphics/drawable/Drawable;)Landroid/graphics/Bitmap;

    move-result-object v3

    .line 782
    .local v3, bitmap:Landroid/graphics/Bitmap;
    const-string v14, "AppInfoManager"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string v16, "addPackage called - BitmapCache update! : "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    move-object v0, v2

    iget-object v0, v0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-static/range {v14 .. v16}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 783
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$200(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/tiffany/util/TFCache;

    move-result-object v14

    iget-object v15, v2, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v15}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v15

    invoke-virtual {v15}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v7, v15, v3}, Lcom/nemustech/tiffany/util/TFCache;->add(ILjava/lang/String;Landroid/graphics/Bitmap;)V

    .line 784
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$200(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/tiffany/util/TFCache;

    move-result-object v14

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v15, v0

    invoke-static {v15}, Lcom/nemustech/regina/AppInfoManager;->access$1800(Lcom/nemustech/regina/AppInfoManager;)I

    move-result v15

    invoke-virtual {v14, v15}, Lcom/nemustech/tiffany/util/TFCache;->setVictimStyle(I)V

    goto/16 :goto_0

    .line 790
    .end local v3           #bitmap:Landroid/graphics/Bitmap;
    :cond_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v14

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v15, v0

    invoke-static {v15}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v15

    invoke-interface {v15}, Ljava/util/List;->size()I

    move-result v15

    const/16 v16, 0x2

    sub-int v15, v15, v16

    invoke-interface {v14, v15}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/nemustech/regina/AppInfo;

    .line 791
    .local v10, prevAppInfo:Lcom/nemustech/regina/AppInfo;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$200(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/tiffany/util/TFCache;

    move-result-object v14

    iget-object v15, v10, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v15}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v15

    invoke-virtual {v15}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Lcom/nemustech/tiffany/util/TFCache;->indexOf(Ljava/lang/String;)I

    move-result v14

    add-int/lit8 v7, v14, 0x1

    .line 792
    const/4 v14, -0x1

    if-eq v7, v14, :cond_0

    const/16 v14, 0x13f

    if-gt v7, v14, :cond_0

    .line 793
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$200(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/tiffany/util/TFCache;

    move-result-object v14

    const/4 v15, 0x1

    invoke-virtual {v14, v15}, Lcom/nemustech/tiffany/util/TFCache;->setVictimStyle(I)V

    .line 794
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$600(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v14

    iget-object v15, v11, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object/from16 v16, v0

    invoke-static/range {v16 .. v16}, Lcom/nemustech/regina/AppInfoManager;->access$400(Lcom/nemustech/regina/AppInfoManager;)Landroid/content/pm/PackageManager;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Landroid/content/pm/ActivityInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object v15

    invoke-static {v14, v15}, Lcom/nemustech/regina/RUtils;->createIconThumbnail(Landroid/content/Context;Landroid/graphics/drawable/Drawable;)Landroid/graphics/Bitmap;

    move-result-object v3

    .line 797
    .restart local v3       #bitmap:Landroid/graphics/Bitmap;
    const-string v14, "AppInfoManager"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string v16, "addPackage called - BitmapCache update! : "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    move-object v0, v2

    iget-object v0, v0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    const/16 v16, 0x0

    invoke-static/range {v14 .. v16}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 798
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$200(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/tiffany/util/TFCache;

    move-result-object v14

    iget-object v15, v2, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v15}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v15

    invoke-virtual {v15}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v7, v15, v3}, Lcom/nemustech/tiffany/util/TFCache;->add(ILjava/lang/String;Landroid/graphics/Bitmap;)V

    .line 799
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v14, v0

    invoke-static {v14}, Lcom/nemustech/regina/AppInfoManager;->access$200(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/tiffany/util/TFCache;

    move-result-object v14

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    move-object v15, v0

    invoke-static {v15}, Lcom/nemustech/regina/AppInfoManager;->access$1800(Lcom/nemustech/regina/AppInfoManager;)I

    move-result v15

    invoke-virtual {v14, v15}, Lcom/nemustech/tiffany/util/TFCache;->setVictimStyle(I)V

    goto/16 :goto_0

    .line 807
    .end local v2           #appInfo:Lcom/nemustech/regina/AppInfo;
    .end local v3           #bitmap:Landroid/graphics/Bitmap;
    .end local v4           #componentName:Landroid/content/ComponentName;
    .end local v5           #i:I
    .end local v6           #i$:Ljava/util/Iterator;
    .end local v7           #index:I
    .end local v8           #isAdded:Z
    .end local v9           #nextAppInfo:Lcom/nemustech/regina/AppInfo;
    .end local v10           #prevAppInfo:Lcom/nemustech/regina/AppInfo;
    .end local v11           #resolveInfo:Landroid/content/pm/ResolveInfo;
    .end local v12           #size:I
    .end local v13           #toAdd:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    :cond_7
    return-void
.end method

.method private removePackage(Ljava/lang/String;)V
    .locals 9
    .parameter "packageNameToRemove"

    .prologue
    const/4 v8, 0x1

    .line 705
    if-eqz p1, :cond_1

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v5

    if-lez v5, :cond_1

    .line 706
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v5}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v1

    .line 707
    .local v1, count:I
    sub-int v2, v1, v8

    .local v2, i:I
    :goto_0
    if-ltz v2, :cond_1

    .line 708
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v5}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v5

    invoke-interface {v5, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/nemustech/regina/AppInfo;

    .line 709
    .local v0, appInfo:Lcom/nemustech/regina/AppInfo;
    iget-object v5, v0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v5}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v3

    .line 710
    .local v3, packageName:Ljava/lang/String;
    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 711
    const-string v5, "AppInfoManager"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "remove package : "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, v0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v7}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v7

    invoke-virtual {v7}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x0

    invoke-static {v5, v6, v7}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 712
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v5}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v5

    invoke-interface {v5, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/nemustech/regina/AppInfo;

    .line 713
    .local v4, toRemoved:Lcom/nemustech/regina/AppInfo;
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v5}, Lcom/nemustech/regina/AppInfoManager;->access$200(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/tiffany/util/TFCache;

    move-result-object v5

    iget-object v6, v4, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v6}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v6

    invoke-virtual {v6}, Landroid/content/ComponentName;->flattenToString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/nemustech/tiffany/util/TFCache;->remove(Ljava/lang/String;)V

    .line 715
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v5, v0}, Lcom/nemustech/regina/AppInfoManager;->access$1400(Lcom/nemustech/regina/AppInfoManager;Lcom/nemustech/regina/AppInfo;)Z

    move-result v5

    if-eq v5, v8, :cond_0

    .line 716
    iget-object v5, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    iget-object v6, v0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v6}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;

    move-result-object v6

    invoke-static {v5, v6}, Lcom/nemustech/regina/AppInfoManager;->access$1500(Lcom/nemustech/regina/AppInfoManager;Landroid/content/ComponentName;)Z

    .line 707
    .end local v4           #toRemoved:Lcom/nemustech/regina/AppInfo;
    :cond_0
    add-int/lit8 v2, v2, -0x1

    goto :goto_0

    .line 721
    .end local v0           #appInfo:Lcom/nemustech/regina/AppInfo;
    .end local v1           #count:I
    .end local v2           #i:I
    .end local v3           #packageName:Ljava/lang/String;
    :cond_1
    return-void
.end method

.method private updatePackage(Ljava/lang/String;)V
    .locals 2
    .parameter "packageNameToUpdate"

    .prologue
    .line 810
    invoke-direct {p0, p1}, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->removePackage(Ljava/lang/String;)V

    .line 811
    invoke-direct {p0, p1}, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->addPackage(Ljava/lang/String;)V

    .line 812
    iget-object v0, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v0}, Lcom/nemustech/regina/AppInfoManager;->access$900(Lcom/nemustech/regina/AppInfoManager;)Ljava/util/List;

    move-result-object v0

    new-instance v1, Lcom/nemustech/regina/AppInfoManager$AppInfoComparator;

    invoke-direct {v1}, Lcom/nemustech/regina/AppInfoManager$AppInfoComparator;-><init>()V

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 813
    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .prologue
    const/4 v6, 0x0

    const/4 v7, 0x1

    .line 649
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v4}, Lcom/nemustech/regina/AppInfoManager;->access$000(Lcom/nemustech/regina/AppInfoManager;)Z

    move-result v4

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v4}, Lcom/nemustech/regina/AppInfoManager;->access$100(Lcom/nemustech/regina/AppInfoManager;)Z

    move-result v4

    if-nez v4, :cond_1

    .line 650
    :cond_0
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v4, v7}, Lcom/nemustech/regina/AppInfoManager;->access$702(Lcom/nemustech/regina/AppInfoManager;Z)Z

    .line 651
    invoke-static {}, Lcom/nemustech/regina/AppInfoManager;->access$800()Landroid/os/Handler;

    move-result-object v4

    const-wide/16 v5, 0x1f4

    invoke-virtual {v4, p0, v5, v6}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 652
    const-string v4, "AppInfoManager"

    const-string v5, "tried to run ChangedPackageTask, but bitmap cache loading is not completed"

    invoke-static {v4, v5, v7}, Lcom/nemustech/regina/RLog;->i(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 702
    :goto_0
    return-void

    .line 656
    :cond_1
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v4, v7}, Lcom/nemustech/regina/AppInfoManager;->access$1302(Lcom/nemustech/regina/AppInfoManager;Z)Z

    .line 658
    invoke-static {v7}, Landroid/os/Process;->setThreadPriority(I)V

    .line 659
    iget-object v2, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->mPackages:[Ljava/lang/String;

    .line 660
    .local v2, packages:[Ljava/lang/String;
    array-length v3, v2

    .line 661
    .local v3, size:I
    iget v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->mOp:I

    packed-switch v4, :pswitch_data_0

    .line 691
    :cond_2
    :goto_1
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v4, v6}, Lcom/nemustech/regina/AppInfoManager;->access$702(Lcom/nemustech/regina/AppInfoManager;Z)Z

    .line 692
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v4, v6}, Lcom/nemustech/regina/AppInfoManager;->access$1302(Lcom/nemustech/regina/AppInfoManager;Z)Z

    .line 693
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-virtual {v4}, Lcom/nemustech/regina/AppInfoManager;->sendNotify()V

    .line 695
    invoke-static {}, Lcom/nemustech/regina/AppInfoManager;->access$800()Landroid/os/Handler;

    move-result-object v4

    monitor-enter v4

    .line 697
    :try_start_0
    invoke-static {}, Lcom/nemustech/regina/AppInfoManager;->access$800()Landroid/os/Handler;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->wait()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    .line 701
    :goto_2
    :try_start_1
    monitor-exit v4

    goto :goto_0

    :catchall_0
    move-exception v5

    monitor-exit v4
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v5

    .line 663
    :pswitch_0
    const/4 v1, 0x0

    .local v1, i:I
    :goto_3
    if-ge v1, v3, :cond_2

    .line 664
    aget-object v4, v2, v1

    invoke-direct {p0, v4}, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->addPackage(Ljava/lang/String;)V

    .line 663
    add-int/lit8 v1, v1, 0x1

    goto :goto_3

    .line 668
    .end local v1           #i:I
    :pswitch_1
    const/4 v1, 0x0

    .restart local v1       #i:I
    :goto_4
    if-ge v1, v3, :cond_2

    .line 669
    aget-object v4, v2, v1

    invoke-direct {p0, v4}, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->updatePackage(Ljava/lang/String;)V

    .line 668
    add-int/lit8 v1, v1, 0x1

    goto :goto_4

    .line 674
    .end local v1           #i:I
    :pswitch_2
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    const/4 v5, 0x2

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/AppInfoManager;->sendNotificationMessage(I)V

    .line 675
    const/4 v1, 0x0

    .restart local v1       #i:I
    :goto_5
    if-ge v1, v3, :cond_3

    .line 676
    aget-object v4, v2, v1

    invoke-direct {p0, v4}, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->addPackage(Ljava/lang/String;)V

    .line 675
    add-int/lit8 v1, v1, 0x1

    goto :goto_5

    .line 678
    :cond_3
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-virtual {v4}, Lcom/nemustech/regina/AppInfoManager;->cancelNotificationMessage()V

    .line 679
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    const/4 v5, 0x3

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/AppInfoManager;->sendNotificationMessage(I)V

    .line 680
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-virtual {v4}, Lcom/nemustech/regina/AppInfoManager;->cancelNotificationMessage()V

    .line 681
    iget-object v4, p0, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->this$0:Lcom/nemustech/regina/AppInfoManager;

    invoke-static {v4}, Lcom/nemustech/regina/AppInfoManager;->access$600(Lcom/nemustech/regina/AppInfoManager;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ElementLocator;->refreshElementShortcutInAllWorkspaces()V

    goto :goto_1

    .line 685
    .end local v1           #i:I
    :pswitch_3
    const/4 v1, 0x0

    .restart local v1       #i:I
    :goto_6
    if-ge v1, v3, :cond_2

    .line 686
    aget-object v4, v2, v1

    invoke-direct {p0, v4}, Lcom/nemustech/regina/AppInfoManager$ChangedPackageTask;->removePackage(Ljava/lang/String;)V

    .line 685
    add-int/lit8 v1, v1, 0x1

    goto :goto_6

    .line 698
    .end local v1           #i:I
    :catch_0
    move-exception v5

    move-object v0, v5

    .line 699
    .local v0, e:Ljava/lang/InterruptedException;
    :try_start_2
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_2

    .line 661
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_3
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
